<?php

/**
 * 花集通京东订单API(为了方便视图呈现，重新调整数据层级等)
 *
 * @author cjj
 */
class ShopAPI {

    private $_client;

    /**
     * Constructor
     */
    public function __construct($options = array()) {
        $client = isset($options[0]) ? $options[0] : null;
        if (!$client || !$client instanceof JDClient) {
            throw new APIException(30017);
        }
        $this->_client = $client;
    }

    /**
     * 订单数据根据修改时间
     *
     * @param $startTime
     * @param $endTime
     * @param $page
     * @return mixed
     */
    public function getShop() {
        return $this->_client->api('jingdong.vender.shop.query', array());
    }
}